package cn.tedu.community.commons.pojo.comment.dto;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

@Data
public class CommentAddNewDTO implements Serializable {
    private Long forumId;

    /**
     * 论坛评论
     */
    @NotNull(message = "请输入评论内容！")
    @Pattern(regexp = "([\\w\\W]{1,100}$)", message = "请输入1~100个字符的评论!")
    private String comment;

    /**
     * 评论图片url
     */
    private String photo;

}
